package com.weimob.cloud.api.crm.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.weimob.cloud.api.common.WeimobCloudRsp;
import com.weimob.cloud.api.crm.req.WeimobCrmMemberCardGetListReq;
import com.weimob.cloud.api.crm.rsp.WeimobCrmMemberCardGetListRsp;
import com.weimob.cloud.api.token.interceptor.WeimobTokenInterceptor;

import java.util.List;

/**
 * 微明云平台CRM会员管理会员卡客户端接口
 */
@BaseRequest(baseURL = "https://dopen.weimob.com/apigw/weimob_crm/v2.0/membercard", interceptor = WeimobTokenInterceptor.class)
public interface WeimobCrmMemberCardClient {

    /**
     * 获取会员卡列表
     */
    @Post(url = "/getList?accesstoken=${accessToken}")
    WeimobCloudRsp<List<WeimobCrmMemberCardGetListRsp>> memberCardGetList(@JSONBody WeimobCrmMemberCardGetListReq req);
}
